/* C.Strlcmp: compare two strings, treating all letters as lower case */

#include <ctype.h>
#include "utils.h"

int strlcmp (const char *s, const char *t)
{

        for ( ; tolower(*s) == tolower(*t); ++s, ++t )
                if ( *s == '\0' )
                        return(0);

        return (tolower(*s) - tolower(*t));
}
